{include file="header.html"}
<body class="body-main">
<ul id="admin_sub_title">
	<li class="sub"><a href="javascript:void(0)" onClick="selectTab('config0',this)">自定义联系方式</a></li>
</ul>
<form method="post">
<input type="hidden" name="con[cid]" value="{$cid|default:0}">
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0" id="config2" class="tableConfig">
		<tr class="tdbg">
		  <td width="150" align="right" class="config_td_first">网站分组：</td>
		  <td class="tdbg"><font color="blue">{$classname}</font></td>
		</tr>
		<tr class="tdbg">
		  <td align="right" class="config_td_first">开关：</td>
		  <td class="icheck_radios"><label><input type="radio" name="con[lianxi_open]" value="1" {if $lianxi_open} checked{/if}>开启</label>
				<label><input type="radio" name="con[lianxi_open]" value="0" {if !$lianxi_open} checked{/if}>关闭</label>　<span>是否开启自定义联系方式</span></td>
		</tr>
		<tr>
			<td align="right" class="config_td_first">联系电话：</td>
			<td><div style="color:red;margin-bottom:5px;"><i class="typcn typcn-warning"></i>每行一个电话号码，系统会随机调用</div>
			<textarea name="con[company_tel]" class="inputs" style="width:350px;padding:1px;height:150px">{$company_tel}</textarea>
			</td>
		</tr>
		<tr>
			<td align="right" class="config_td_first">联系地址：</td>
			<td><div style="color:red;margin-bottom:5px;"><i class="typcn typcn-warning"></i>每行一个联系地址，系统会随机调用</div>
			<textarea name="con[company_address]" class="inputs" style="width:350px;padding:1px;height:150px">{$company_address}</textarea>
			</td>
		</tr>
		<tr>
			<td align="right" class="config_td_first">联系邮箱：</td>
			<td><div style="color:red;margin-bottom:5px;"><i class="typcn typcn-warning"></i>每行一个邮箱地址，系统会随机调用</div>
			<textarea name="con[company_email]" class="inputs" style="width:350px;padding:1px;height:150px">{$company_email}</textarea>
			</td>
		</tr>
    <tr>
	  <td align="center" class="tdbg">&nbsp;</td>
      <td><button type="button" id="dosave" class="button button_submit">保存设置</button></td>
    </tr>
	</table>
	</form>
<script>
$("#dosave").click(function(){
	$(this).html('正在保存...');
	$.ajax({
		type:"post",
		url:"?admin-domain-lianxi_update",
		data:$("form").serialize(),
		dataType:'json',
		timeout:28000,
		global:false,
		success:function(data){
			if(data.status==1){
				showAlert('success',data.info);
				setTimeout(function(){ var win = art.dialog.open.origin;win.location.reload(); top.art.dialog.list['openifrm'].close(); },2000);
			}else{
				showAlert('error',data.info);
			}
		}
	});
 return false;
});
</script>
{include file="footer.html"}
</body>
</html>